body {
    font-family: 'Yuanti SC', 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #F5F5F5;
    color: #333;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #1A2A3A;
    color: #FFF;
}

.brand {
    width: 45px;
    margin-left: 10px;
    padding-top: 5px;
}

.search-bar {
    display: flex;
    justify-content: center;
    margin: 20px;
    position: relative;
}

.detect-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px; /* 图片间隙 */
    max-width: 100%;
    margin: 0 auto;
}

.image-wrapper {
    width: 75px;
    height: 75px;
    transition: transform 0.3s ease;
}

.image-wrapper a {
    display: block;
    width: 100%;
    height: 100%;
}

.image-wrapper img {
    width: auto;
    height: 100%;
    object-fit: cover;
}

.image-wrapper:hover {
    transform: scale(2); /* 鼠标悬停放大效果 */
}

.text {
    float: left;
    width: 400px;
    height: 24px;
    line-height: 24px;
    color: #999;
    padding: 4px;
    margin-bottom: 4px;
    border-width: 2px 0 2px 2px;
    border-color: #f30213;
    border-style: solid;
    outline: 0;
    font-size: 12px
}

.button {
    float: left;
    width: 80px;
    height: 36px;
    font-family: tahoma, arial, Microsoft YaHei, Hiragino Sans GB, "\u5b8b\u4f53", sans-serif;
    background: #f30213;
    border: none;
    border-radius: 0;
    line-height: 1;
    color: #fff;
    font-size: 16px;
    cursor: pointer
}

.cw-icon {
    position: relative;
    cursor: default;
    zoom: 1
}

.photo-search-btn {
    position: absolute;
    margin-left: -30px;
    top: 10px;
    width: 19px;
    height: 15px;
    overflow: hidden
}

.photo-search-btn .upload-bg {
    display: block;
    width: 19px;
    height: 15px;
    background: url('/assets/images/sprite-photo-search.png') no-repeat;
    cursor: pointer
}

.photo-search-btn .upload-trigger {
    position: absolute;
    right: 0;
    bottom: 0;
    z-index: 3;
    width: 500px;
    height: 500px;
    cursor: pointer;
    filter: alpha(opacity=0);
    opacity: 0
}

.photo-search-btn:hover .upload-bg {
    background-position: -30px 0
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 250px));
    gap: 20px;
    padding: 20px;
}

.product-card {
    background-color: #FFF;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

.product-card:hover {
    transform: scale(1.05);
}

.product-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.product-info {
    padding: 15px;
}

.product-info h3 {
    margin: 0;
    font-size: 18px;
}

.product-info p {
    margin: 5px 0;
    color: #777;
}

.pagination-cards {
    display: flex;
    justify-content: center;
    list-style: none;
    padding: 0;
    margin: 2rem 0;
}

.pagination-cards .page-item {
    margin: 0 5px;
}

.pagination-cards .page-link {
    display: block;
    padding: 5px 15px;
    text-decoration: none;
    color: #555;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.pagination-cards .page-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.pagination-cards .active .page-link {
    background: linear-gradient(135deg, #6e8efb, #a777e3);
    color: white;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.pagination-cards .disabled .page-link {
    opacity: 0.5;
    pointer-events: none;
}

.model-select {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    appearance: none; /* 隐藏默认箭头 */
    background-image: url('data:image/svg+xml;utf8,<svg fill="%23333"...</svg>');
    background-repeat: no-repeat;
    background-position: right 10px center;
}

.model-select:focus {
    border-color: #4d90fe;
    outline: none;
}

.custom-checkbox {
    display: inline-flex;
    align-items: center;
    cursor: pointer;
    position: relative;
    padding-left: 25px;
    padding-right: 20px;
    user-select: none;
}

.custom-checkbox input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkmark {
    position: absolute;
    left: 0;
    height: 20px;
    width: 20px;
    background-color: #001528;
    border-radius: 4px;
    transition: all 0.3s;
}

.custom-checkbox:hover input ~ .checkmark {
    background-color: #ccc;
}

.custom-checkbox input:checked ~ .checkmark {
    background-color: #f30213;
}

.checkmark:after {
    content: "";
    position: absolute;
    display: none;
}

.custom-checkbox input:checked ~ .checkmark:after {
    display: block;
}

.custom-checkbox .checkmark:after {
    left: 7px;
    top: 3px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

#loading {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid #f30213;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}